<!-- head -->
<div class="row wrapper border-bottom white-bg page-heading">
	<div class="col-md-12">
		<ol class="breadcrumb">
			<li><a>主页</a></li>
			<li><a>销售查询菜单</a></li>
			<li class="active"><strong>代理商详情</strong></li>
		</ol>
	</div>
</div>

<!-- content-->
<div class="wrapper wrapper-content animated fadeIn"  ng-controller="agentDetailCtrl">
	<form class="form-horizontal" id="form1" >
		<div class="form-group">
			<div class="row">
				<div class="col-lg-12">
					<div class="tabs-container tab_other">
						<uib-tabset active="active">
							<uib-tab> 						
								<uib-tab-heading>
									<span class="block m-t-xs"> <i class="fa fa-laptop"></i> <strong class="font-bold">基本信息</strong></span> 
								</uib-tab-heading>
								<div class="panel-body">
									<div ui-view="agentDetailBaseTwo"/>
								</div>	
							</uib-tab> 
							
							<uib-tab    > 
								<uib-tab-heading> 
									<span class="block m-t-xs"> <i class="fa fa-desktop"></i><strong class="font-bold">代理业务产品</strong></span> 
								</uib-tab-heading>
								<div class="panel-body">
				                    <div class="gridStyle"  ui-grid="bpList" ui-grid-resize-columns />
								</div>
							</uib-tab>
							
							<uib-tab    > 
								<uib-tab-heading> 
									<span class="block m-t-xs"> 
										<i class="fa fa-desktop"></i>
										<strong class="font-bold">分润设置</strong>
									</span> 
								</uib-tab-heading>
								<div class="panel-body">
								审核状态：{{shareData[0].checkStatus | formatDropping: checkType}}<br>
								锁定状态：{{shareData[0].lockStatus | formatDropping: lockType}}
									<div class="gridStyle" ui-grid="shareList" ui-grid-resize-columns />
									<div class="block m-t-xs">
	                           			<strong>备注：</strong><br/>
										每笔固定收益1元，则填写代理商收益1.00;<br/>
										每笔收益率为0.1%则填写代理商收益0.1%;<br/>
										每笔收益率为0.1%，封顶3元，保底1元则填写代理商收益1.00~0.1%~3.00;<br/>
										每笔收益率为0.1%加上固定收益1元，则填写代理商收益0.1%+1.00;<br/>
										商户签约费率与代理商成本费率差额百分比分润,则填写代理商成本（格式如同上面所述代理商收益格式）和代理商分润百分比如50%;<br/>
										商户签约费率与代理商成本费率差额按交易量阶梯百分比分润，则填写代理商成本（格式如同上面所述代理商收益格式），点击阶梯分润按钮设置分润阶梯.<br/>
						   			</div>
								</div>
							</uib-tab>
							
							<uib-tab   > 
								<uib-tab-heading > 
									<span class="block m-t-xs"> 
									<i class="fa fa-desktop"></i>
									<strong class="font-bold">商户服务管控费率</strong></span> 
								</uib-tab-heading>
								<div class="panel-body">
									审核状态：{{rateData[0].checkStatus | formatDropping: checkType}}<br>
									锁定状态：{{rateData[0].lockStatus | formatDropping: lockType}}
									<div class="gridStyle" ui-grid="rateList" ui-grid-resize-columns  />
			                        <div class="block m-t-xs">
			                          <strong>备注：</strong><br/>
										每笔固定金额1元，则填写商户费率1.00;<br/>
										每笔扣率为0.1%则填写商户费率0.1%;<br/>
										每笔扣率为0.1%，封顶3元，保底1元则填写商户费率1.00~0.1%~3.00;<br/>
										每笔扣率为0.1%加上固定金额1元，则填写商户费率0.1%+1.00;<br/>
										单笔阶梯扣率如10000.00元以下，扣率0.38%，10000.00元及以上扣率0.37%，则填写0.38%<10000.00<=0.37%.<br/>
									   </div>									
								</div>
							</uib-tab>
							
							<uib-tab  > 
								<uib-tab-heading> 
									<span class="block m-t-xs"> 
									<i class="fa fa-desktop"></i>
									<strong class="font-bold">商户服务管控限额</strong></span> 
								</uib-tab-heading>
								<div class="panel-body">
									审核状态：{{quotaData[0].checkStatus | formatDropping: checkType}}<br>
									锁定状态：{{quotaData[0].lockStatus | formatDropping: lockType}}
									<div class="gridStyle" ui-grid="quotaList" ui-grid-resize-columns />
								</div>
							</uib-tab>
							
							<uib-tab ng-show='teamId==200010'> 
								<uib-tab-heading >
									<span class="block m-t-xs"> <i class="fa fa-desktop"></i> <strong class="font-bold">OEM定制配置</strong></span> 
								</uib-tab-heading>
								<div class="panel-body">								
								    <div class="row">
								        <div class="col-lg-12">
								        	 <div class="ibox float-e-margins">
								                <div class="ibox-title">
								                    <h5>OEM-APP关于软件</h5>
								                    <!--<div ibox-tools></div>-->
								                </div>
								                <div class="ibox-content">							                	
								                    <div class="row">
								                        <div class="col-sm-10">								                        	
								                        	<div class="form-group">
								                        		<label class="col-lg-4 control-label">LOGO：</label>
																	<img ng-show="agent.clientLogo!=null" alt="" ng-src="{{agent.clientLogoLink}}" style="width: 198px;height: 100px">
	                      									 </div>
	                      									 <div class="form-group">
								                        		<label class="col-lg-4 control-label">说明：</label>
	                           									<div class="col-lg-6">
																	<textarea rows="5" cols="20" ng-model="agent.logoRemark" class="form-control" readonly></textarea>
																</div>
	                      									 </div>                      									 	                   									 	                 									 								                       
								                        </div>								                        					                     
								                    </div>
								                </div>
								            </div>
								            <div class="ibox float-e-margins">
								                <div class="ibox-title">
								                    <h5>代理商WEB</h5>
								                    <!--<div ibox-tools></div>-->
								                </div>
								                <div class="ibox-content">
								                    <div class="row">
								                        <div class="col-sm-10">								                        	
								                        	<div class="form-group">
								                        		<label class="col-lg-4 control-label">LOGO：</label>
															 	<img alt="" ng-show="agent.managerLogo!=null" ng-src="{{agent.managerLogoLink}}" style="width: 198px;height: 100px">
	                      									 </div>                      									                									 	                   									 	                 									 								                       
								                        </div>					                        					                     
								                    </div>
								                </div>
								            </div>
								        </div>
							       	</div>						       
								</div>
							</uib-tab> 
						</uib-tabset>					
					</div>
				</div>
			</div>

			<div class="col-lg-12 bgff">
				<div class="col-sm-12">
					<div class="col-sm-2"></div>
					<div class="col-sm-6"><a class="btn btn-primary4" ui-sref="sale.agentSelect">返回</a></div>
				</div>
			</div>
		</div>
	</form>
</div>